import express, { Router } from 'express'
import * as likeController from './like.controller'
import { authGuard } from '../auth/auth.middleware'

const router: Router = express.Router()

router.post('/post/:postId/like', authGuard, likeController.storeUserLikePost)
router.delete(
  '/post/:postId/like',
  authGuard,
  likeController.destroyUserLikePost
)

export default router
